package com.htstar.ovms.admin.api.feign;

import com.htstar.ovms.admin.api.entity.SysUser;
import com.htstar.ovms.common.core.constant.SecurityConstants;
import com.htstar.ovms.common.core.constant.ServiceNameConstants;
import com.htstar.ovms.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * Description: 用户角色相关
 * Author: flr
 * Date: Created in 2020/6/29
 * Company: 航通星空
 *
 * Modified By:
 */
@FeignClient(contextId = "SysUserFeign", value = ServiceNameConstants.PLATFORM_SERVICE)
public interface SysUserFeign {

    /**
     * Description: 查询用户
     * Author: flr
     * Company: 航通星空
     * Modified By:
     */

    @GetMapping("/user/getUsers/{nickName}")
     SysUser getUser(@PathVariable("nickName") String nickName);



}
